From 0b5542b42435c404cf97d4985feabeb3a590161a Mon Sep 17 00:00:00 2001 From: "iap10@labyrinth.cl.cam.ac.uk" Date: Wed, 14 Jul 2004 07:10:58 +0000 Subject: [PATCH] bitkeeper revision 1.1071.1.6 (40f4dc820j_moO3D2AEja33QFn9N7A) Tiny fixes to allow gentoo distro to work in dom0. --- tools/examples/init.d/xend | 2 +- tools/python/xen/xend/XendRoot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/examples/init.d/xend b/tools/examples/init.d/xend index bf1cc93e3d..b0cbe96612 100755 --- a/tools/examples/init.d/xend +++ b/tools/examples/init.d/xend @@ -7,7 +7,7 @@ # chkconfig: 2345 99 00 # description: Starts and stops the Xen control daemon. -. /etc/init.d/functions +. /etc/init.d/functions || . /etc/init.d/functions.sh case "$1" in start) diff --git a/tools/python/xen/xend/XendRoot.py b/tools/python/xen/xend/XendRoot.py index f022389695..891cf0cea6 100644 --- a/tools/python/xen/xend/XendRoot.py +++ b/tools/python/xen/xend/XendRoot.py @@ -17,7 +17,7 @@ import sxp def reboots(): """Get a list of system reboots from wtmp. """ - out = os.popen('/usr/bin/last reboot', 'r') + out = os.popen('last reboot', 'r') list = [ x.strip() for x in out if x.startswith('reboot') ] return list -- 2.30.2